package com.xcesys.extras.dataobject.audit;

import java.util.Date;

import com.xcesys.extras.dataobject.AbstractDataObject;

public class AuditLog extends AbstractDataObject {
	private static final long serialVersionUID = 7353080178843551578L;

	private String appName;

	private Date dateTime;

	private String objClass;

	private Long objId;

	private Long version;

	private String operation;

	private Boolean succeed;

	private String username;

	private String data;

	private Date dateTimeStart;

	private Date dateTimeEnd;

	public String getAppName() {
		return appName;
	}

	public String getData() {
		return data;
	}

	public Date getDateTime() {
		return dateTime;
	}

	public Date getDateTimeEnd() {
		return dateTimeEnd;
	}

	public Date getDateTimeStart() {
		return dateTimeStart;
	}

	public String getObjClass() {
		return objClass;
	}

	public Long getObjId() {
		return objId;
	}

	public String getOperation() {
		return operation;
	}

	public Boolean getSucceed() {
		return succeed;
	}

	public String getUsername() {
		return username;
	}

	public Long getVersion() {
		return version;
	}

	public void setAppName(String appName) {
		Object oldValue = this.appName;
		this.appName = appName;
		firePropertyChange("appName", oldValue, appName);
	}

	public void setData(String data) {
		Object oldValue = this.data;
		this.data = data;
		firePropertyChange("data", oldValue, data);
	}

	public void setDateTime(Date dateTime) {
		Object oldValue = this.dateTime;
		this.dateTime = dateTime;
		firePropertyChange("dateTime", oldValue, dateTime);
	}

	public void setDateTimeEnd(Date dateTimeEnd) {
		Object oldValue = this.dateTimeEnd;
		this.dateTimeEnd = dateTimeEnd;
		firePropertyChange("dateTimeEnd", oldValue, dateTimeEnd);
	}

	public void setDateTimeStart(Date dateTimeStart) {
		Object oldValue = this.dateTimeStart;
		this.dateTimeStart = dateTimeStart;
		firePropertyChange("dateTimeStart", oldValue, dateTimeStart);
	}

	public void setObjClass(String objClass) {
		Object oldValue = this.objClass;
		this.objClass = objClass;
		firePropertyChange("objClass", oldValue, objClass);
	}

	public void setObjId(Long objId) {
		Object oldValue = this.objId;
		this.objId = objId;
		firePropertyChange("objId", oldValue, objId);
	}

	public void setOperation(String operation) {
		Object oldValue = this.operation;
		this.operation = operation;
		firePropertyChange("operation", oldValue, operation);
	}

	public void setSucceed(Boolean succeed) {
		Object oldValue = this.succeed;
		this.succeed = succeed;
		firePropertyChange("succeed", oldValue, succeed);
	}

	public void setUsername(String username) {
		Object oldValue = this.username;
		this.username = username;
		firePropertyChange("username", oldValue, username);
	}

	public void setVersion(Long version) {
		Object oldValue = this.version;
		this.version = version;
		firePropertyChange("version", oldValue, version);
	}

}
